package com.qf.service.Impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.qf.mapper.DtsGoodsMapper;
import com.qf.pojo.DtsGoods;
import com.qf.service.GoodsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Service
public class GoodsServiceImpl implements GoodsService {


    @Autowired
    private DtsGoodsMapper dtsGoodsMapper;

    @Override
    public int count() {

        QueryWrapper<DtsGoods> wrapper = new QueryWrapper<>();
        wrapper.eq("deleted", false);
        Integer count = dtsGoodsMapper.selectCount(wrapper);
        return count;
    }
}
